package com.test.config;

import io.minio.MinioClient;
import lombok.extern.slf4j.Slf4j;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
@Slf4j
@Configuration
public class MinioConfiguration {
    @Bean
        public MinioClient minioClient(){
        log.info("minio正在连接");
        return MinioClient.builder()
                .endpoint("http://192.168.88.136:9000")
                .credentials("minio","password")
                .build();
    }
}
